//package com.hejx.managecenter.config;
//
//import com.alibaba.druid.pool.DruidDataSource;
//import com.alibaba.druid.pool.DruidDataSourceFactory;
//import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Primary;
//
//import javax.sql.DataSource;
//
///**
// * @program: managecenter_example
// * @description: jpa配置
// * @author: hejx
// * @email: doubihah@foxmail.com
// * @create: 2018-06-26 20:02
// **/
//public class DataSourceConfig {
//
//    @Primary
//    @Bean(name = "mcDatasource")
//    @Qualifier("mcDatasource")
//    @ConfigurationProperties("spring.datasource.managecenter")
//    public DataSource supplyChainDataSource(){
//        return DruidDataSourceBuilder.create().build();
//    }
//
//}
